package com.zixuan.controller;

import com.zixuan.common.Result;
import com.zixuan.entity.EmployeeEntity;
import com.zixuan.service.EmployeeService;
import com.zixuan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys/user")
public class UserController {

    @Autowired
    private UserService userService;
    @PostMapping("/login")
    public Result login(@RequestBody EmployeeEntity employeeEntity){
        return userService.login(employeeEntity);
    }
}
